package com.china08.yxyapi.entity.mg.lecture;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * @author Richard.Wang
 * @descript 备授课目录
 */
@Document(collection = "yxy.tea.lecture.catalog")
public class YxyLectureCatalog extends MongoBaseEntityNoId {
    private static final long serialVersionUID = 6037970962547271690L;

    @Id
    private String id;

    @Indexed
    @Field(value = "user_id")
    private String userId;

    @Indexed
    @Field(value = "school_id")
    private String schoolId;

    /**
     * 书籍id
     */
    @Field(value = "book_id")
    private String bookId;

    /**
     * 学段id
     */
    @Field(value = "phase_id")
    private String phaseId;

    /**
     * 学段名称
     */
    @Field(value = "phase_name")
    private String phaseName;

    @Field(value = "subject_id")
    private String subjectId;

    @Field(value = "subject_name")
    private String subjectName;

    @Field(value = "version_id")
    private String versionId;

    @Field(value = "version_name")
    private String versionName;

    /**
     * 学期id
     */
    @Field(value = "semester_id")
    private String semesterId;

    /**
     * 学期名称，一年级上册，必修，选修
     */
    @Field(value = "semester_name")
    private String semesterName;

    /**
     * 状态 0——无效 1——生效
     */
    @Field(value = "status")
    private Integer status = 1;

    /**
     * 是否为缺省的目录 0否 1是
     */
    @Field(value = "is_default")
    private Integer isDefault = 0;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getPhaseId() {
        return phaseId;
    }

    public void setPhaseId(String phaseId) {
        this.phaseId = phaseId;
    }

    public String getPhaseName() {
        return phaseName;
    }

    public void setPhaseName(String phaseName) {
        this.phaseName = phaseName;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(String semesterId) {
        this.semesterId = semesterId;
    }

    public String getSemesterName() {
        return semesterName;
    }

    public void setSemesterName(String semesterName) {
        this.semesterName = semesterName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

}
